#ifndef UDP_H
#define UDP_H

#include <QWidget>
#include <QTcpServer>
#include <QUdpSocket>
#include <QByteArray>
#include <QMessageBox>
#include <QHostAddress>

QT_BEGIN_NAMESPACE
namespace Ui { class udp; }
QT_END_NAMESPACE

class udp : public QWidget
{
    Q_OBJECT

public:
    udp(QWidget *parent = nullptr);
    ~udp();

private slots:
    void on_pushButton_open_clicked();
    void read_udp_data_slot();

    void on_pushButton_send_data_clicked();

    void on_pushButton_close_clicked();

private:
    Ui::udp *ui;
    QUdpSocket *udpSocket;
};
#endif // UDP_H
